#ifndef _STRING_H_
#define _STRING_H_

/* Return the integer corresponding to the given string. */
int Atoi(const char *str);

/* Return 1 iff the given char is in [a-zA-Z0-9] */
int IsAlnum(char c);

/* Compare 2 strings, return 1 if equal, 0 otherwise */
int StringCompare(char *str1, char *str2, int n);

/* Copy the specified number of bytes from the source to target */
void MemCopy(char *target, char *source, int len);

/* Copy the source string into the target memory location */
void StringCopy(char *target, char *source);

/* Grab one token from the given string. */
char* StringToken(char *str, char **pos, char delim);

#endif
